package org.triumphxx.springboot.loopretry.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.triumphxx.springboot.loopretry.service.RetryService;

import javax.annotation.Resource;

/**
 * @author: wangyp
 * @Date: 2023/7/17
 * @Time: 10:41
 * @Desc: 重操作接口测试类
 **/
@RestController
@Slf4j
public class RetryController {
    @Resource
    RetryService retryService;
    @GetMapping("/re")
    public String retry(@RequestParam("str") String str) throws Exception{
        log.info("Controller 请求入参为：{}",str);
        return retryService.retry(str);
    }
}
